Don't use deprecated API. Reported by Tobias Mueller
authorMatthias Clasen <matthiasc@src.gnome.org>
Sat, 28 Feb 2009 05:38:25 +0000 (05:38 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 28 Feb 2009 05:38:25 +0000 (05:38 +0000)
        * tests/testfilechooserbutton.c: Don't use deprecated API.
        Reported by Tobias Mueller

svn path=/trunk/; revision=22422

ChangeLog
tests/testfilechooserbutton.c

index 06f21f81e635300b70fd7f71312e73dfbc14d9d5..a89dc48026ef6c3544e577b0219d7d301f798d36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-28  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 573113 – Can't build tests due to testfilechooserbutton.c...
+
+       * tests/testfilechooserbutton.c: Don't use deprecated API.
+       Reported by Tobias Mueller
+
 2009-02-28  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 573069 – Gdk-CRITICAL warnings with Gtk 2.14 when dragging
index 0b9a6549acf4ea56e6f76f360fb7c366cbba818b..fccf0ce050cae37ec7ba399c9cd798e5409b65b7 100644 (file)
@@ -315,9 +315,8 @@ main (int   argc,
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 
-  chooser = gtk_file_chooser_button_new_with_backend ("Select A File - testfilechooserbutton",
-                                                     GTK_FILE_CHOOSER_ACTION_OPEN,
-                                                     backend);
+  chooser = gtk_file_chooser_button_new ("Select A File - testfilechooserbutton",
+                                         GTK_FILE_CHOOSER_ACTION_OPEN);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_remove_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), chooser);
@@ -345,9 +344,8 @@ main (int   argc,
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 
-  chooser = gtk_file_chooser_button_new_with_backend ("Select A Folder - testfilechooserbutton",
-                                                     GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
-                                                     backend);
+  chooser = gtk_file_chooser_button_new ("Select A Folder - testfilechooserbutton",
+                                         GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_remove_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);
   gtk_file_chooser_add_shortcut_folder (GTK_FILE_CHOOSER (chooser), gtk_src_dir, NULL);